package com.xingxuecn.limit.service;

import com.xingxuecn.limit.common.model.Role;
import com.xingxuecn.limit.common.model.vo.Page;

import java.sql.SQLException;
import java.util.List;

/**
 * @author Zy at 2018/9/13 0013 下午 3:54
 */
public interface RoleService {

    List<Role> findAll() throws SQLException;

    List<Role> search(Role role) throws SQLException;

    int add(Role role) throws SQLException;

    int update(Role role) throws SQLException;

    int delete(Integer id) throws SQLException;

    Page searchPage(Role role, Integer page, Integer rows) throws SQLException;
}
